﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class Chukuguanli_chanpinService
    {
        //产品全部查询
        public Bean.Chukuguanli_chanpinBean chukuguanli_chanpin_ServiceSelect()
        {
            DAO.Chukuguanli_chanpinDao yuancailiaodao = new DAO.Chukuguanli_chanpinDao();
            return yuancailiaodao.chukuguanli_chanpinDaoSelectchukuuse();
        }
        //产品入库条件查询
        public Bean.Chukuguanli_chanpinBean chukuguanli_chanpinServiceSelectContation(Bean.Chukuguanli_chanpinBean bean)
        {
            DAO.Chukuguanli_chanpinDao rukuguanlidao = new DAO.Chukuguanli_chanpinDao();
            return rukuguanlidao.chukuguanli_chanpinDaoSelectConditionchukuuse(bean);
        }
        //产品入库条件查询 !!库存管理用
        public Bean.Chukuguanli_chanpinBean chukuguanli_chanpin_kucunguanliServiceSelectContation(Bean.Chukuguanli_chanpinBean bean)
        {
            DAO.Chukuguanli_chanpinDao rukuguanlidao = new DAO.Chukuguanli_chanpinDao();
            return rukuguanlidao.chukuguanli_chanpin_kucunuseDaoSelectConditionchukuuse(bean);
        }
        //产品入库添加
        public bool chukuguanli_chanpinServiceAdd(Bean.Chukuguanli_chanpinBean bean)
        {
            DAO.Chukuguanli_chanpinDao rukuguanli_yuancailiaodao = new DAO.Chukuguanli_chanpinDao();
            return rukuguanli_yuancailiaodao.chukuguanli_chanpinDaoAddchukuuse(bean);
        }

        //产品入库添加
        public bool chukuguanli_chanpinkucundatechuliadd(Bean.Chukuguanli_chanpinBean bean)
        {
            DAO.Chukuguanli_chanpinDao ruku_chanpin_dao = new DAO.Chukuguanli_chanpinDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyadd(bean);
        }

        //产品入库添减
        public bool chukuguanli_chanpinkucundatechulijian(Bean.Chukuguanli_chanpinBean bean)
        {
            DAO.Chukuguanli_chanpinDao ruku_chanpin_dao = new DAO.Chukuguanli_chanpinDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyjian(bean);
        }
    }
}
